<link href="/static/js/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="/static/js/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css" />
<body>
<div class="page-header" style="margin: 20px 0 20px;">
	<span style="margin:0 0 20px 10px;">当前位置：<a href="/?g=menu&r=adAdmin/adminlist">管理员列表</a> >> 编辑角色</span>
</div>
	<form class="form-horizontal" action="?g=menu&r=adAdmin/adminRole" method="post">
		<input type="hidden" name="adminid" value={$adminid} />
		<div class="form-group">
	    	<label for="account" class="col-sm-2 control-label">管理员角色：</label>
		    <div class="col-sm-10">
				{foreach $allRole as $value}
               		<input type="checkbox" name='roleid[]' value="{$value.role_id}" {if in_array($value.role_id,$adminRole)}checked="checked"{/if}/>{$value.role_name}
               	{/foreach}
		    </div>
	    </div>
	    <div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<button type="submit" class="btn btn-default">提交</button>
			</div>
		</div>
	</form>
</body>